package com.grj.parkingsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 车位表
 * @TableName t_parking_space
 */
@TableName(value ="t_parking_space")
@Data
public class ParkingSpace implements Serializable {
    /**
     * 车位ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 停车场ID
     */
    @TableField(value = "parking_lot_id")
    private Long parkingLotId;

    /**
     * 车位编号
     */
    @TableField(value = "space_number")
    private String spaceNumber;

    /**
     * 车位类型(0:普通车位,1:残疾人车位,2:充电车位)
     */
    @TableField(value = "space_type")
    private Integer spaceType;

    /**
     * 楼层
     */
    @TableField(value = "floor")
    private String floor;

    /**
     * 区域
     */
    @TableField(value = "area")
    private String area;

    /**
     * 状态(0:空闲,1:已占用,2:故障,3:已预订)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 每小时价格
     */
    @TableField(value = "price_per_hour")
    private BigDecimal pricePerHour;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}